home *** CD-ROM | disk | FTP | other *** search
-
- shader()
- {// >=gf3
- SurfaceID(SRFTYPE)
- NoLightmaps()
- Shaderquality(1)
- pass()
- {
- Pixelshader("InShadow.psh")
-
- !include("__Tex1.mtt")
- !include("__FadeGen.mtt")
- }
-
- lightpass()
- !include("Spot1Tex.mtt")
- Cull("cw")
- }
-
-
- shader()
- {//gf2
- SurfaceID(SRFTYPE)
- NoLightmaps()
- pass()
- {
- Lighting()
- tmu()
- {
- TexGen("planar")
- TexMod("scale", "const", %terrain_inv_x, 0, 0, "const", %terrain_inv_z, 0, 0)
- texture()
- {
- Image(%colortexture)
- addressfunc("clamp", "clamp", "clamp")
- }
- ColorOp("mul", "texture", "tfactor", "current") //texture * lighting
- }
- tmu()
- {
- texture()
- {
- Mapchannel(0)
- Image(TEXTURE1)
- !include(TEX1OPTIONSFILE)
- }
- ColorOp("mul", "texture", "current", "current") //texture * lighting
- AlphaOp("arg2", "texture", "diffuse", "current") //fadeblending
- }
-
- Tfactor(%daycolor_a, %daycolor_a, %daycolor_a, %daycolor_a)
-
- !include("__FadeGenDayColorGF2.mtt")
-
- !include("__LightningColorsGF2.mtt")
-
- }
- lightpass()
- !include("spot_spotmap.mtt")
- Cull("cw")
- }
-
-